package com.easy.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("orders")

public class Order implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private String id;
    private Integer userId;
    private String addressName;
    private String addressPhone;
    private String address;
    private BigDecimal paySum;
    private Integer status;
    private LocalDateTime creatDate;
    private LocalDateTime payDate;
    private LocalDateTime sendDate;
    private LocalDateTime deliveryDate;
    private LocalDateTime finishDate;
    private Integer isDel;

    @TableField(exist = false)
    private List<OrderItem> items;
}


